﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DBService.Service
{
    public class AlbumPicServer : RohonModels.IModels.IAlbumPic
    {
        internal DBService.DBManager db;

        public AlbumPicServer()
        {
            db = new DBManager();
        }

        public int Insert(RohonModels.Models.AlbumPic albumpic)
        {
            db.AlbumPic.Add(albumpic);
            return albumpic.Id;
        }

        public void Dispose()
        {
            db.SaveChanges();
            db.Dispose();
        }
    }
}
